<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多库共存</title>
    <script src="../jQuery/jQuery.js"></script>
</head>
<body>
    <script>
        $(function(){
            function $(ele){
                return document.querySelector(ele);
            }
            //console.log($("div"));
            //1.如果$符号冲突 我们就使用jQuery
            jQuery.each();
            //2.让jQuery 释放对$控制权 让用户自己决定
            var suibian=jQuery.noConflict(); //注:这里不用$是因为前面有个$的函数,有冲突
            console.log(suibian("span"));
            suibian.each();
        })
    </script>
    <div> </div>
    <span></span>
</body>
</html>